import request from '@/utils/request'

export default {
  getHospSetList(current, limit, searchObj) {
    return request({
      url: `/admin/hosp/hospitalSet/getPage/${current}/${limit}`,
      method: 'post',
      // eslint-disable-next-line no-undef
      data: searchObj
    })
  },
  deleteHospById(id) {
    return request({
      url: `/admin/hosp/hospitalSet/deleteById/${id}`,
      method: 'delete'
      // eslint-disable-next-line no-undef
      // data: searchObj
    })
  },
  deletebatchHosp(ids) {
    return request({
      url: `/admin/hosp/hospitalSet/removebatchHosp`,
      method: 'delete',
      // eslint-disable-next-line no-undef
      data: ids
    })
  },

  //锁定和取消锁定
  lockhospstatus(id, status) {
    return request({
      url: `/admin/hosp/hospitalSet/lockhosp/${id}/${status}`,
      method: 'Put'
      // eslint-disable-next-line no-undef
      // data: ids
    })
  },
  //锁定和取消锁定
  addhospstatus(hospitalSet) {
    return request({
      url: `/admin/hosp/hospitalSet/addhospitalSet`,
      method: 'post',
      // eslint-disable-next-line no-undef
      data: hospitalSet
    })
  },
  //锁定和取消锁定
  gethospsById(id) {
    return request({
      url: `/admin/hosp/hospitalSet/gethospByid/${id}`,
      method: 'get'
      // eslint-disable-next-line no-undef
      // data: hospitalSet
    })
  },
  //更新操作
  updatehospsById(hospitalSet) {
    return request({
      url: `/admin/hosp/hospitalSet/updateHosp`,
      method: 'post',
      // eslint-disable-next-line no-undef
      data: hospitalSet
    })
  }

}

